FROM amazoncorretto:17-al2023-jdk

WORKDIR /temp
ADD src/main/resources/application.yml /temp/application.yml
ADD target/aboy-admin-0.0.1-SNAPSHOT.jar /temp/admin.jar
RUN ls
EXPOSE 8080

ENTRYPOINT ["java", "-jar","-DSpring.config.location=/temp/application.yml", "admin.jar"]